package com.atguigu.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

@SpringBootApplication
@EnableEurekaClient
@EnableDiscoveryClient
public class PaymentMain8001 {
    /*Eureka自我保护机制
    *某时刻某一个微服务不可用，Eureka不会立即清理，依旧会对该微服务进行保存
    * 属于AP理论
    * */
    public static void main(String[] args) {
        SpringApplication.run(PaymentMain8001.class,args);
    }
}

